@theme-color: #19be6b;

page {
  padding-bottom: 20px;
}

.history-container {
  padding: 16px 16px 0;
}

.history-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
  overflow: hidden; // 配合 status-tag 的绝对定位

  .status-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    font-size: 12px;
    color: #fff;
    border-bottom-left-radius: 8px;

    &.status-pending {
      background-color: #ff9900; // 橙色
    }

    &.status-completed {
      background-color: @theme-color; // 主题色
    }
  }

  .card-section {
    .section-title {
      font-size: 14px;
      font-weight: 500;
      color: #303133;

      &.official-reply {
        color: @theme-color;
      }
    }

    .section-content {
      font-size: 14px;
      color: #646566;
      line-height: 1.6;
      word-break: break-all;
      margin-top: 20rpx;
    }
  }

  .card-divider {
    height: 1px;
    background-color: #f2f3f5;
    margin: 16px 0;
  }

  .card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f7f8fa;
    font-size: 12px;
    color: #969799;
    text-align: right;
  }
}

// 空状态
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 100px;

  .empty-icon {
    width: 120px;
    height: 120px;
  }

  .empty-text {
    font-size: 14px;
    color: #969799;
    margin-top: 16px;
  }
}